<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>&nbsp;</td>
   
  </tr>
  
  <?php
        if(isset($ctx->tags)) {
   ?>  
  <tr>
    <td>        
        <span>        	
         <?php
          	$i = 0;
            foreach($ctx->tags as $items) {
                $i++;
                $rnum1  = rand(0,255);
                $rnum2  = rand(0,255);
                $rnum3  = rand(0,255);
                $rnum4  = rand(0,7);							
                $input  = array('#002c61','#008cdc','#a0a0a0','#a1d5f2','#a1d5f2','#176ddd','#002c61','#008cdc');
                $fonts  = array('10px','30px','16px','28px','20px','13px','25px','34px');
                $rcolor = $input[$rnum4];
                $rfont = $fonts[$rnum4];
         ?>
            <a href="/search?st=<?php echo $items; ?>" class="darkgraylink" style="font-size: <?php echo $rfont;?>;color:<?php echo $rcolor;?>"><?php echo $items; ?></a>
            <?php
              }
            ?>
        </span>
    </td>
  </tr>
  <?php
   } else {
  ?>
  	<tr><td align="center"><strong>No Tags Found</strong></td></tr>
  <?php }
   ?>
  <tr><td>&nbsp;</td></tr>
</table>
